const express = require('express')
const path = require('path')
const app = express()
const port = 4000


const chinese = require('./routers/chinese')
//const math = require('./routers/math')
//const english = require('./routers/english')
//const politics = require('./routers/politics')
//const history = require('./routers/history')
//const physics = require('./routers/physics')
//const chemistry = require('./routers/chemistry')


app.engine('html', require('express-art-template'));
app.use('/node_modules/', express.static(path.join(__dirname, './node_modules')));
app.use('/public/', express.static(path.join(__dirname, './public')));

// 使用路由模块
app.use(chinese)
//app.use(math)
//app.use(english)
//app.use(politics)
//app.use(history)
//app.use(physics)
//app.use(chemistry)

app.get('/', (req, res) => res.send('Welcome To StudySystem'))

app.listen(port, () => console.log(`Example app listening on port ${port}!`))
